<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:forgeview="http://jboss.org/forge/view"	
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{sdCustBean.id}"/>
		<f:event type="preRenderView" listener="#{sdCustBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Create Sd Cust"/>

	<ui:define name="header">
		Sd Cust
	</ui:define>

	<ui:define name="subheader">
		<c:choose>
			<c:when test="#{!empty sdCustBean.id}">
				Edit existing Sd Cust
			</c:when>
			<c:otherwise>
				Create a new Sd Cust
			</c:otherwise>
		</c:choose>
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="create">
			<h:messages globalOnly="true" styleClass="error"/>

			<h:panelGrid columnClasses="label,component,required" columns="3">
				<h:outputLabel for="sdCustBeanSdCustCustNo" value="Cust No:"/>
				<h:panelGroup>
					<h:inputText id="sdCustBeanSdCustCustNo" required="true" value="#{sdCustBean.sdCust.custNo}"/>
					<h:message for="sdCustBeanSdCustCustNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="sdCustBeanSdCustSdCustStatus" value="Sd Cust Status:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{sdCustStatusBean.converter}" id="sdCustBeanSdCustSdCustStatus" value="#{sdCustBean.sdCust.sdCustStatus}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sdCustStatusBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="sdCustBeanSdCustSdCustStatus" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdCustBeanSdCustSysTitleName" value="Sys Title Name:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{sysTitleNameBean.converter}" id="sdCustBeanSdCustSysTitleName" value="#{sdCustBean.sdCust.sysTitleName}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysTitleNameBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="sdCustBeanSdCustSysTitleName" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdCustBeanSdCustSdCustType" value="Sd Cust Type:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{sdCustTypeBean.converter}" id="sdCustBeanSdCustSdCustType" value="#{sdCustBean.sdCust.sdCustType}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sdCustTypeBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="sdCustBeanSdCustSdCustType" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdCustBeanSdCustSdCustGroup" value="Sd Cust Group:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{sdCustGroupBean.converter}" id="sdCustBeanSdCustSdCustGroup" value="#{sdCustBean.sdCust.sdCustGroup}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sdCustGroupBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="sdCustBeanSdCustSdCustGroup" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdCustBeanSdCustSysBusinessType" value="Sys Business Type:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{sysBusinessTypeBean.converter}" id="sdCustBeanSdCustSysBusinessType" value="#{sdCustBean.sdCust.sysBusinessType}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysBusinessTypeBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="sdCustBeanSdCustSysBusinessType" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdCustBeanSdCustCustCode" value="Cust Code:"/>
				<h:panelGroup>
					<h:inputText id="sdCustBeanSdCustCustCode" maxLength="50" value="#{sdCustBean.sdCust.custCode}"/>
					<h:message for="sdCustBeanSdCustCustCode" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdCustBeanSdCustCustFirstName" value="Cust First Name:"/>
				<h:panelGroup>
					<h:inputText id="sdCustBeanSdCustCustFirstName" maxLength="100" value="#{sdCustBean.sdCust.custFirstName}"/>
					<h:message for="sdCustBeanSdCustCustFirstName" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdCustBeanSdCustCustMidName" value="Cust Mid Name:"/>
				<h:panelGroup>
					<h:inputText id="sdCustBeanSdCustCustMidName" maxLength="50" value="#{sdCustBean.sdCust.custMidName}"/>
					<h:message for="sdCustBeanSdCustCustMidName" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdCustBeanSdCustCustLastName" value="Cust Last Name:"/>
				<h:panelGroup>
					<h:inputText id="sdCustBeanSdCustCustLastName" maxLength="100" value="#{sdCustBean.sdCust.custLastName}"/>
					<h:message for="sdCustBeanSdCustCustLastName" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdCustBeanSdCustCustIdCardNo" value="Cust Id Card No:"/>
				<h:panelGroup>
					<h:inputText id="sdCustBeanSdCustCustIdCardNo" maxLength="20" value="#{sdCustBean.sdCust.custIdCardNo}"/>
					<h:message for="sdCustBeanSdCustCustIdCardNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdCustBeanSdCustCustSex" value="Cust Sex:"/>
				<h:panelGroup>
					<h:inputText id="sdCustBeanSdCustCustSex" value="#{sdCustBean.sdCust.custSex}"/>
					<h:message for="sdCustBeanSdCustCustSex" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdCustBeanSdCustSdCustContacts" value="Sd Cust Contacts:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{sdCustBean.sdCust.sdCustContacts}"/>
					<h:dataTable id="sdCustBeanSdCustSdCustContacts" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Sys Title Name"/>
							</f:facet>
							<h:link outcome="/sdCustContact/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="forgeviewdisplayitemSysTitleName" value="#{forgeview:display(_item.sysTitleName)}"/>
							</h:link>
							<f:facet name="footer">
								<h:selectOneMenu converter="#{sysTitleNameBean.converter}" id="sdCustContactBeanAddSysTitleName" value="#{sdCustContactBean.add.sysTitleName}">
									<f:selectItem/>
									<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysTitleNameBean.all}" var="_item"/>
								</h:selectOneMenu>
								<h:message for="sdCustContactBeanAddSysTitleName" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Cust Contact First Name"/>
							</f:facet>
							<h:link outcome="/sdCustContact/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemCustContactFirstName" value="#{_item.custContactFirstName}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdCustContactBeanAddCustContactFirstName" maxLength="50" value="#{sdCustContactBean.add.custContactFirstName}"/>
								<h:message for="sdCustContactBeanAddCustContactFirstName" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Cust Contact Mid Name"/>
							</f:facet>
							<h:link outcome="/sdCustContact/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemCustContactMidName" value="#{_item.custContactMidName}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdCustContactBeanAddCustContactMidName" maxLength="50" value="#{sdCustContactBean.add.custContactMidName}"/>
								<h:message for="sdCustContactBeanAddCustContactMidName" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Cust Contact Last Name"/>
							</f:facet>
							<h:link outcome="/sdCustContact/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemCustContactLastName" value="#{_item.custContactLastName}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdCustContactBeanAddCustContactLastName" maxLength="50" value="#{sdCustContactBean.add.custContactLastName}"/>
								<h:message for="sdCustContactBeanAddCustContactLastName" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Cust Contact Phone No"/>
							</f:facet>
							<h:link outcome="/sdCustContact/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemCustContactPhoneNo" value="#{_item.custContactPhoneNo}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdCustContactBeanAddCustContactPhoneNo" maxLength="20" value="#{sdCustContactBean.add.custContactPhoneNo}"/>
								<h:message for="sdCustContactBeanAddCustContactPhoneNo" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(sdCustContactBean.added)}" id="sdCustBeanSdCustSdCustContactsAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{sdCustContactBean.add.sdCust}" value="#{sdCustBean.sdCust}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdCustBeanSdCustSdCustUserAddrs" value="Sd Cust User Addrs:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{sdCustBean.sdCust.sdCustUserAddrs}"/>
					<h:dataTable id="sdCustBeanSdCustSdCustUserAddrs" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Sys Addr Type"/>
							</f:facet>
							<h:link outcome="/sdCustUserAddr/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="forgeviewdisplayitemSysAddrType" value="#{forgeview:display(_item.sysAddrType)}"/>
							</h:link>
							<f:facet name="footer">
								<h:selectOneMenu converter="#{sysAddrTypeBean.converter}" id="sdCustUserAddrBeanAddSysAddrType" value="#{sdCustUserAddrBean.add.sysAddrType}">
									<f:selectItem/>
									<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysAddrTypeBean.all}" var="_item"/>
								</h:selectOneMenu>
								<h:message for="sdCustUserAddrBeanAddSysAddrType" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Sys Addr 01"/>
							</f:facet>
							<h:link outcome="/sdCustUserAddr/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="forgeviewdisplayitemSysAddr01" value="#{forgeview:display(_item.sysAddr01)}"/>
							</h:link>
							<f:facet name="footer">
								<h:selectOneMenu converter="#{sysAddr01Bean.converter}" id="sdCustUserAddrBeanAddSysAddr01" value="#{sdCustUserAddrBean.add.sysAddr01}">
									<f:selectItem/>
									<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysAddr01Bean.all}" var="_item"/>
								</h:selectOneMenu>
								<h:message for="sdCustUserAddrBeanAddSysAddr01" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Cust User Addr No"/>
							</f:facet>
							<h:link outcome="/sdCustUserAddr/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemCustUserAddrNo" value="#{_item.custUserAddrNo}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdCustUserAddrBeanAddCustUserAddrNo" maxLength="20" value="#{sdCustUserAddrBean.add.custUserAddrNo}"/>
								<h:message for="sdCustUserAddrBeanAddCustUserAddrNo" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Cust User Addr Moo"/>
							</f:facet>
							<h:link outcome="/sdCustUserAddr/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemCustUserAddrMoo" value="#{_item.custUserAddrMoo}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdCustUserAddrBeanAddCustUserAddrMoo" maxLength="10" value="#{sdCustUserAddrBean.add.custUserAddrMoo}"/>
								<h:message for="sdCustUserAddrBeanAddCustUserAddrMoo" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Cust User Addr Soi"/>
							</f:facet>
							<h:link outcome="/sdCustUserAddr/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemCustUserAddrSoi" value="#{_item.custUserAddrSoi}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdCustUserAddrBeanAddCustUserAddrSoi" maxLength="100" value="#{sdCustUserAddrBean.add.custUserAddrSoi}"/>
								<h:message for="sdCustUserAddrBeanAddCustUserAddrSoi" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(sdCustUserAddrBean.added)}" id="sdCustBeanSdCustSdCustUserAddrsAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{sdCustUserAddrBean.add.sdCust}" value="#{sdCustBean.sdCust}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdCustBeanSdCustSdCustImages" value="Sd Cust Images:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{sdCustBean.sdCust.sdCustImages}"/>
					<h:dataTable id="sdCustBeanSdCustSdCustImages" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Cust Image Name"/>
							</f:facet>
							<h:link outcome="/sdCustImage/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemCustImageName" value="#{_item.custImageName}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdCustImageBeanAddCustImageName" maxLength="300" value="#{sdCustImageBean.add.custImageName}"/>
								<h:message for="sdCustImageBeanAddCustImageName" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Cust Image Descr"/>
							</f:facet>
							<h:link outcome="/sdCustImage/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemCustImageDescr" value="#{_item.custImageDescr}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdCustImageBeanAddCustImageDescr" maxLength="500" value="#{sdCustImageBean.add.custImageDescr}"/>
								<h:message for="sdCustImageBeanAddCustImageDescr" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Cust Image File Name"/>
							</f:facet>
							<h:link outcome="/sdCustImage/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemCustImageFileName" value="#{_item.custImageFileName}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdCustImageBeanAddCustImageFileName" maxLength="300" value="#{sdCustImageBean.add.custImageFileName}"/>
								<h:message for="sdCustImageBeanAddCustImageFileName" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(sdCustImageBean.added)}" id="sdCustBeanSdCustSdCustImagesAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{sdCustImageBean.add.sdCust}" value="#{sdCustBean.sdCust}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdCustBeanSdCustSdQuotations" value="Sd Quotations:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{sdCustBean.sdCust.sdQuotations}"/>
					<h:dataTable id="sdCustBeanSdCustSdQuotations" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Qt No"/>
							</f:facet>
							<h:link outcome="/sdQuotation/view">
								<f:param name="id" value="#{_item.qtNo}"/>
								<h:outputText id="itemQtNo" value="#{_item.qtNo}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdQuotationBeanAddQtNo" value="#{sdQuotationBean.add.qtNo}"/>
								<h:message for="sdQuotationBeanAddQtNo" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Qt Code"/>
							</f:facet>
							<h:link outcome="/sdQuotation/view">
								<f:param name="id" value="#{_item.qtNo}"/>
								<h:outputText id="itemQtCode" value="#{_item.qtCode}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdQuotationBeanAddQtCode" maxLength="50" value="#{sdQuotationBean.add.qtCode}"/>
								<h:message for="sdQuotationBeanAddQtCode" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Qt Descr"/>
							</f:facet>
							<h:link outcome="/sdQuotation/view">
								<f:param name="id" value="#{_item.qtNo}"/>
								<h:outputText id="itemQtDescr" value="#{_item.qtDescr}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdQuotationBeanAddQtDescr" maxLength="100" value="#{sdQuotationBean.add.qtDescr}"/>
								<h:message for="sdQuotationBeanAddQtDescr" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Qt Date"/>
							</f:facet>
							<h:link outcome="/sdQuotation/view">
								<f:param name="id" value="#{_item.qtNo}"/>
								<h:outputText id="itemQtDate" value="#{_item.qtDate}">
									<f:convertDateTime type="date"/>
								</h:outputText>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdQuotationBeanAddQtDate" maxLength="10" value="#{sdQuotationBean.add.qtDate}">
									<f:convertDateTime type="date"/>
								</h:inputText>
								<h:message for="sdQuotationBeanAddQtDate" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Qt Discount Perc"/>
							</f:facet>
							<h:link outcome="/sdQuotation/view">
								<f:param name="id" value="#{_item.qtNo}"/>
								<h:outputText id="itemQtDiscountPerc" value="#{_item.qtDiscountPerc}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdQuotationBeanAddQtDiscountPerc" value="#{sdQuotationBean.add.qtDiscountPerc}"/>
								<h:message for="sdQuotationBeanAddQtDiscountPerc" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(sdQuotationBean.added)}" id="sdCustBeanSdCustSdQuotationsAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{sdQuotationBean.add.sdCust}" value="#{sdCustBean.sdCust}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdCustBeanSdCustSdCustUserAccounts" value="Sd Cust User Accounts:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{sdCustBean.sdCust.sdCustUserAccounts}"/>
					<h:dataTable id="sdCustBeanSdCustSdCustUserAccounts" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Cust User No"/>
							</f:facet>
							<h:link outcome="/sdCustUserAccount/view">
								<f:param name="id" value="#{_item.custUserNo}"/>
								<h:outputText id="itemCustUserNo" value="#{_item.custUserNo}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdCustUserAccountBeanAddCustUserNo" value="#{sdCustUserAccountBean.add.custUserNo}"/>
								<h:message for="sdCustUserAccountBeanAddCustUserNo" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(sdCustUserAccountBean.added)}" id="sdCustBeanSdCustSdCustUserAccountsAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{sdCustUserAccountBean.add.sdCust}" value="#{sdCustBean.sdCust}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdCustBeanSdCustSdCustParameters" value="Sd Cust Parameters:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{sdCustBean.sdCust.sdCustParameters}"/>
					<h:dataTable id="sdCustBeanSdCustSdCustParameters" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Sys Parameter Master"/>
							</f:facet>
							<h:link outcome="/sdCustParameter/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="forgeviewdisplayitemSysParameterMaster" value="#{forgeview:display(_item.sysParameterMaster)}"/>
							</h:link>
							<f:facet name="footer">
								<h:selectOneMenu converter="#{sysParameterMasterBean.converter}" id="sdCustParameterBeanAddSysParameterMaster" value="#{sdCustParameterBean.add.sysParameterMaster}">
									<f:selectItem/>
									<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysParameterMasterBean.all}" var="_item"/>
								</h:selectOneMenu>
								<h:message for="sdCustParameterBeanAddSysParameterMaster" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Cust Param String Val"/>
							</f:facet>
							<h:link outcome="/sdCustParameter/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemCustParamStringVal" value="#{_item.custParamStringVal}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdCustParameterBeanAddCustParamStringVal" maxLength="500" value="#{sdCustParameterBean.add.custParamStringVal}"/>
								<h:message for="sdCustParameterBeanAddCustParamStringVal" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Cust Param Number Val"/>
							</f:facet>
							<h:link outcome="/sdCustParameter/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemCustParamNumberVal" value="#{_item.custParamNumberVal}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdCustParameterBeanAddCustParamNumberVal" value="#{sdCustParameterBean.add.custParamNumberVal}"/>
								<h:message for="sdCustParameterBeanAddCustParamNumberVal" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(sdCustParameterBean.added)}" id="sdCustBeanSdCustSdCustParametersAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{sdCustParameterBean.add.sdCust}" value="#{sdCustBean.sdCust}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdCustBeanSdCustSdCustAddrs" value="Sd Cust Addrs:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{sdCustBean.sdCust.sdCustAddrs}"/>
					<h:dataTable id="sdCustBeanSdCustSdCustAddrs" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Sys Addr Type"/>
							</f:facet>
							<h:link outcome="/sdCustAddr/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="forgeviewdisplayitemSysAddrType" value="#{forgeview:display(_item.sysAddrType)}"/>
							</h:link>
							<f:facet name="footer">
								<h:selectOneMenu converter="#{sysAddrTypeBean.converter}" id="sdCustAddrBeanAddSysAddrType" value="#{sdCustAddrBean.add.sysAddrType}">
									<f:selectItem/>
									<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysAddrTypeBean.all}" var="_item"/>
								</h:selectOneMenu>
								<h:message for="sdCustAddrBeanAddSysAddrType" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Sys Addr 01"/>
							</f:facet>
							<h:link outcome="/sdCustAddr/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="forgeviewdisplayitemSysAddr01" value="#{forgeview:display(_item.sysAddr01)}"/>
							</h:link>
							<f:facet name="footer">
								<h:selectOneMenu converter="#{sysAddr01Bean.converter}" id="sdCustAddrBeanAddSysAddr01" value="#{sdCustAddrBean.add.sysAddr01}">
									<f:selectItem/>
									<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysAddr01Bean.all}" var="_item"/>
								</h:selectOneMenu>
								<h:message for="sdCustAddrBeanAddSysAddr01" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Cust Addr No"/>
							</f:facet>
							<h:link outcome="/sdCustAddr/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemCustAddrNo" value="#{_item.custAddrNo}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdCustAddrBeanAddCustAddrNo" maxLength="20" value="#{sdCustAddrBean.add.custAddrNo}"/>
								<h:message for="sdCustAddrBeanAddCustAddrNo" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Cust Addr Moo"/>
							</f:facet>
							<h:link outcome="/sdCustAddr/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemCustAddrMoo" value="#{_item.custAddrMoo}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdCustAddrBeanAddCustAddrMoo" maxLength="10" value="#{sdCustAddrBean.add.custAddrMoo}"/>
								<h:message for="sdCustAddrBeanAddCustAddrMoo" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Cust Addr Soi"/>
							</f:facet>
							<h:link outcome="/sdCustAddr/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemCustAddrSoi" value="#{_item.custAddrSoi}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdCustAddrBeanAddCustAddrSoi" maxLength="100" value="#{sdCustAddrBean.add.custAddrSoi}"/>
								<h:message for="sdCustAddrBeanAddCustAddrSoi" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(sdCustAddrBean.added)}" id="sdCustBeanSdCustSdCustAddrsAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{sdCustAddrBean.add.sdCust}" value="#{sdCustBean.sdCust}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdCustBeanSdCustSdCustTermOfPayments" value="Sd Cust Term Of Payments:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{sdCustBean.sdCust.sdCustTermOfPayments}"/>
					<h:dataTable id="sdCustBeanSdCustSdCustTermOfPayments" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Sys Term Of Payment"/>
							</f:facet>
							<h:link outcome="/sdCustTermOfPayment/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="forgeviewdisplayitemSysTermOfPayment" value="#{forgeview:display(_item.sysTermOfPayment)}"/>
							</h:link>
							<f:facet name="footer">
								<h:selectOneMenu converter="#{sysTermOfPaymentBean.converter}" id="sdCustTermOfPaymentBeanAddSysTermOfPayment" value="#{sdCustTermOfPaymentBean.add.sysTermOfPayment}">
									<f:selectItem/>
									<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysTermOfPaymentBean.all}" var="_item"/>
								</h:selectOneMenu>
								<h:message for="sdCustTermOfPaymentBeanAddSysTermOfPayment" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Cust Term Of Payment Effective Date"/>
							</f:facet>
							<h:link outcome="/sdCustTermOfPayment/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemCustTermOfPaymentEffectiveDate" value="#{_item.custTermOfPaymentEffectiveDate}">
									<f:convertDateTime type="date"/>
								</h:outputText>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdCustTermOfPaymentBeanAddCustTermOfPaymentEffectiveDate" maxLength="10" value="#{sdCustTermOfPaymentBean.add.custTermOfPaymentEffectiveDate}">
									<f:convertDateTime type="date"/>
								</h:inputText>
								<h:message for="sdCustTermOfPaymentBeanAddCustTermOfPaymentEffectiveDate" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Cust Term Of Payment Expire Date"/>
							</f:facet>
							<h:link outcome="/sdCustTermOfPayment/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemCustTermOfPaymentExpireDate" value="#{_item.custTermOfPaymentExpireDate}">
									<f:convertDateTime type="date"/>
								</h:outputText>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdCustTermOfPaymentBeanAddCustTermOfPaymentExpireDate" maxLength="10" value="#{sdCustTermOfPaymentBean.add.custTermOfPaymentExpireDate}">
									<f:convertDateTime type="date"/>
								</h:inputText>
								<h:message for="sdCustTermOfPaymentBeanAddCustTermOfPaymentExpireDate" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Cust Term Of Payment Is Active"/>
							</f:facet>
							<h:link outcome="/sdCustTermOfPayment/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemCustTermOfPaymentIsActive" value="#{_item.custTermOfPaymentIsActive}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdCustTermOfPaymentBeanAddCustTermOfPaymentIsActive" value="#{sdCustTermOfPaymentBean.add.custTermOfPaymentIsActive}"/>
								<h:message for="sdCustTermOfPaymentBeanAddCustTermOfPaymentIsActive" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(sdCustTermOfPaymentBean.added)}" id="sdCustBeanSdCustSdCustTermOfPaymentsAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{sdCustTermOfPaymentBean.add.sdCust}" value="#{sdCustBean.sdCust}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdCustBeanSdCustSdCustDiscounts" value="Sd Cust Discounts:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{sdCustBean.sdCust.sdCustDiscounts}"/>
					<h:dataTable id="sdCustBeanSdCustSdCustDiscounts" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Cust Discount Perc"/>
							</f:facet>
							<h:link outcome="/sdCustDiscount/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemCustDiscountPerc" value="#{_item.custDiscountPerc}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdCustDiscountBeanAddCustDiscountPerc" value="#{sdCustDiscountBean.add.custDiscountPerc}"/>
								<h:message for="sdCustDiscountBeanAddCustDiscountPerc" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Cust Discount Effective Date"/>
							</f:facet>
							<h:link outcome="/sdCustDiscount/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemCustDiscountEffectiveDate" value="#{_item.custDiscountEffectiveDate}">
									<f:convertDateTime type="date"/>
								</h:outputText>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdCustDiscountBeanAddCustDiscountEffectiveDate" maxLength="10" value="#{sdCustDiscountBean.add.custDiscountEffectiveDate}">
									<f:convertDateTime type="date"/>
								</h:inputText>
								<h:message for="sdCustDiscountBeanAddCustDiscountEffectiveDate" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Cust Discount Expire Date"/>
							</f:facet>
							<h:link outcome="/sdCustDiscount/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemCustDiscountExpireDate" value="#{_item.custDiscountExpireDate}">
									<f:convertDateTime type="date"/>
								</h:outputText>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdCustDiscountBeanAddCustDiscountExpireDate" maxLength="10" value="#{sdCustDiscountBean.add.custDiscountExpireDate}">
									<f:convertDateTime type="date"/>
								</h:inputText>
								<h:message for="sdCustDiscountBeanAddCustDiscountExpireDate" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Cust Discount Is Active"/>
							</f:facet>
							<h:link outcome="/sdCustDiscount/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemCustDiscountIsActive" value="#{_item.custDiscountIsActive}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdCustDiscountBeanAddCustDiscountIsActive" value="#{sdCustDiscountBean.add.custDiscountIsActive}"/>
								<h:message for="sdCustDiscountBeanAddCustDiscountIsActive" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(sdCustDiscountBean.added)}" id="sdCustBeanSdCustSdCustDiscountsAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{sdCustDiscountBean.add.sdCust}" value="#{sdCustBean.sdCust}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdCustBeanSdCustSdSaleOrders" value="Sd Sale Orders:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{sdCustBean.sdCust.sdSaleOrders}"/>
					<h:dataTable id="sdCustBeanSdCustSdSaleOrders" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="So No"/>
							</f:facet>
							<h:link outcome="/sdSaleOrder/view">
								<f:param name="id" value="#{_item.soNo}"/>
								<h:outputText id="itemSoNo" value="#{_item.soNo}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdSaleOrderBeanAddSoNo" value="#{sdSaleOrderBean.add.soNo}"/>
								<h:message for="sdSaleOrderBeanAddSoNo" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="So Code"/>
							</f:facet>
							<h:link outcome="/sdSaleOrder/view">
								<f:param name="id" value="#{_item.soNo}"/>
								<h:outputText id="itemSoCode" value="#{_item.soCode}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdSaleOrderBeanAddSoCode" maxLength="50" value="#{sdSaleOrderBean.add.soCode}"/>
								<h:message for="sdSaleOrderBeanAddSoCode" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="So Descr"/>
							</f:facet>
							<h:link outcome="/sdSaleOrder/view">
								<f:param name="id" value="#{_item.soNo}"/>
								<h:outputText id="itemSoDescr" value="#{_item.soDescr}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdSaleOrderBeanAddSoDescr" maxLength="100" value="#{sdSaleOrderBean.add.soDescr}"/>
								<h:message for="sdSaleOrderBeanAddSoDescr" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="So Date"/>
							</f:facet>
							<h:link outcome="/sdSaleOrder/view">
								<f:param name="id" value="#{_item.soNo}"/>
								<h:outputText id="itemSoDate" value="#{_item.soDate}">
									<f:convertDateTime type="date"/>
								</h:outputText>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdSaleOrderBeanAddSoDate" maxLength="10" value="#{sdSaleOrderBean.add.soDate}">
									<f:convertDateTime type="date"/>
								</h:inputText>
								<h:message for="sdSaleOrderBeanAddSoDate" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="So Discount Perc"/>
							</f:facet>
							<h:link outcome="/sdSaleOrder/view">
								<f:param name="id" value="#{_item.soNo}"/>
								<h:outputText id="itemSoDiscountPerc" value="#{_item.soDiscountPerc}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdSaleOrderBeanAddSoDiscountPerc" value="#{sdSaleOrderBean.add.soDiscountPerc}"/>
								<h:message for="sdSaleOrderBeanAddSoDiscountPerc" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(sdSaleOrderBean.added)}" id="sdCustBeanSdCustSdSaleOrdersAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{sdSaleOrderBean.add.sdCust}" value="#{sdCustBean.sdCust}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
			</h:panelGrid>

			<div class="buttons">
				<h:commandLink value="Save" action="#{sdCustBean.update}" styleClass="btn btn-primary"/>
				<c:choose>
					<c:when test="#{!empty sdCustBean.id}">
						<h:link value="Cancel" outcome="view" styleClass="btn btn-primary">
							<f:param name="id" value="#{sdCustBean.id}"/>
						</h:link>
						<h:commandLink value="Delete" action="#{sdCustBean.delete}" styleClass="btn btn-primary"/>
					</c:when>
					<c:otherwise>
						<h:link value="Cancel" outcome="search" styleClass="btn btn-primary"/>
					</c:otherwise>
				</c:choose>
			</div>
		</h:form>
	</ui:define>

</ui:composition>